<div class="layui-form-item" id="{{ $field }}_item"
     {{ isset($parents) && is_array($parents) ? "item-dynamic" : "" }}
     data-field="{{ $field }}"
     data-level="{{ isset($parents) && is_array($parents) ? count($parents) + 1 : 1 }}">
    <label class="layui-form-label">{{ $title }}</label>
    <div class="layui-input-inline" style="{{ isset($width) && $width ? "width:{$width}" : ""  }}">
        <input type="text" name="{{ $field }}" id="{{ $field }}" class="layui-input  layui-image-input">
    </div>
    <div class="layui-upload">
        <button type="button" class="layui-btn up-image" lay-data="{url: '/admin/upImage'}"
                data-max-size="{{ $max_size ?? 0 }}"
                data-field="{{ $field }}"
        >上传{{ $title }}
        </button>
        <div class="layui-upload-list">
            <label class="layui-form-label"></label>
            @if(isset($value) && $value)
                <img class="layui-upload-img upimage-preview" src="{{ $value }}" onclick="if (this.src !== '') {window.open(this.src, '_blank');}" style="cursor: pointer">
            @else
                <img class="layui-upload-img upimage-preview" onclick="if (this.src !== '') {window.open(this.src, '_blank');}" style="cursor: pointer">
            @endif
            <p class="upimage-preview-text"></p>
        </div>
    </div>
    @if(isset($desc) && $desc)<div class="layui-form-mid layui-word-aux" style="left: 130px;{{ $desc_style ?? "" }}">{!! $desc ?? "" !!}</div>@endif
</div>
